<template>
	<view class="index">
		<image class="index__logo" src="/static/logo-main.png" mode="aspectFit"></image>
		<view>
			<u-button type="primary" @click="goto('/pages/login/login')">登录</u-button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				time:1500
			}
		},
		onLoad() {
			// setTimeout(function(){
			// 	uni.redirectTo({
			// 		url:"/pages/login/login",
			// 		animationType:"fade-in",
			// 		animationDuration:700
			// 	})
			// },this.time)
		},
		methods: {
			goto(url) {
                uni.navigateTo({
                    url:url
                })
            }
		}
	}
</script>

<style lang="less">
	.index {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		&__logo {
			height: 200rpx;
			margin-top: 100rpx;
			margin-left: auto;
			margin-right: auto;
			margin-bottom: 60rpx;
		}
	}
</style>
